module.exports = {
  outputDir: "dist",
  assetsDir: "static",
  runtimeCompiler: true,
  publicPath: "./",
  productionSourceMap: false,

  css: {
    loaderOptions: {
      sass: {
        prependData: `@import "~@/style/scss/index.scss"`,
      },
      scss: {
        prependData: `@import "~@/style/scss/index.scss";`,
      },
    },
  },
  devServer: {
    port: 1874,
    proxy: {
      "/zhonghang": {
        target: process.env.VUE_APP_BASE_API,
        ws: true,
        changeOrigin: true,
      },
    },
  },
};
